/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pl.kyle.bbdroid;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

/**
 *
 * @author user
 */
public class bbDroidSettings extends Activity {
    
    
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        setContentView(R.layout.settings);
        
        Button btn_save = (Button) findViewById(R.id.btn_save);
        btn_save.setOnClickListener(new OnClickListener() {

            public void onClick(View v) {
                
               EditText settings_url = (EditText) findViewById(R.id.entry_url);
               Intent settings = new Intent();
               
               settings.putExtra("url", settings_url.getText().toString());
               
               bbDroidSettings.this.setResult(1, settings);
               bbDroidSettings.this.finish();
                
            }
        });
        
    }
    
}
